Skip to content

feat(web): first steps on Home, clearer next actions, more help tips - #48

Merged
musa-kal merged 6 commits into
mainfrom
ui-overhaul-2026-11-21
Nov 21, 2026
Merged

musa-kal merged 6 commits into
mainfrom
ui-overhaul-2026-11-21

Conversation

@musa-kal

@musa-kal musa-kal commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Intent

The owner asked for a UI and UX pass on the Potluck web app: find and fix UI quirks, bugs and visual defects; make the app as easy and intuitive as possible with visual guidance on what to do next without overwhelming the user; add help affordances wherever a feature is confusing, linking to the user guide or showing a quick tip; and keep the palette and UI digestible, unique and fun. A large overhaul was allowed.

Deliberate decisions:

  • Home shows a "Set the table" first steps card (features/onboarding/first-steps.tsx) until some group has more than one member; it is dismissible per browser (local storage) by design. Step 3 has no button on purpose in this pass.
  • The group header leads with a primary Settle up button when you owe and the group is not archived; it is hidden on the Balances tab, which has its own.
  • With no groups, New expense, Settle up and New plan offer Create a group and open the create sheet. Home hides sections that are impossible without a group. Plans and Friends show their add button once when empty.
  • A real not-found page replaces the router default.
  • Eight new help topics extend the existing help system (features/help/topics.ts). Every anchor points at a heading that already exists in the potluck-docs guide; existing topic anchors must never be renamed.
  • Colour: an earlier draft introduced a blue "blueberry" primary colour. The owner rejected it because cool blue clashes with the warm paper background, and it was fully removed. Tomato is the primary action colour again, as on main. Primary actions are a solid tomato fill, "you owe" is tomato text only, destructive buttons keep the soft tinted outline style with a confirm dialog. Kept on purpose from the pass: olive green (#4a8431) for money owed to you and success, muted grey for settled or zero amounts (previously green), saffron for plans, dates and the selected bottom tab pill. The filter count badge uses tomato-strong so 11px white text passes AA.
  • New strings are translated into de, es, fr and pt; those translations were written without a native review, which the owner knows.
  • docs/design.md was rewritten to match.

Constraints: this is a UI pass with no schema changes and no migrations. Never write to production Supabase. Google sign in stays behind its app_config flag (off in the local seed, on in production); auth logic is unchanged. No em dashes or en dashes anywhere. No AI attribution in files, commits or PR text. A matching guide change ships in Fermulate/potluck-docs right after this merges.

What Changed

  • Guidance on what to do next: Home shows a dismissible "Set the table" first steps card (hidden per browser via local storage) until a group has more than one member, and holds back the Coming up prompt and Groups section for someone with no group. The group header leads with a primary Settle up button when you owe and the group is not archived (not on the Balances tab), the group picker's empty state offers Create a group and opens the create sheet, Plans and Friends show their add button once when empty, and a real not-found page with a way home replaces the router default (routerFallbacks, notFoundMode: 'root').
  • Help and copy: eight new help topics in features/help/topics.ts (expense list, balances across groups, create group, friend totals, Plans page, polls, RSVP, inbox) with help buttons and quick tips on the matching screens. New strings added in en and translated into de, es, fr and pt.
  • Colour and UI fixes: money owed to you is now olive (#4a8431, retuned in light and dark tokens) instead of saffron, and settled or zero amounts are muted grey instead of green, including zero amounts passed as owe or owed. Count badges use tomato-strong, sideways scrollers (category chips, split modes) fade their right edge when there is more (useMoreToTheRight), the active group tab scrolls to centre, payments and repeating expense pages keep the Groups tab lit, and the expense search placeholder shortens on phones. docs/design.md is rewritten to match, with unit tests and the onboarding e2e spec extended for the new behaviour.

Credits: Musa Kaleem (directed), Ferrin (Ferrin-Y), and Noor (noorelmosrati).

Risk Assessment

✅ Low: A UI-only change with no schema, RPC or auth changes; both prior fix rounds hold up in the current code (newcomer check reads the full group list, Home waits for it, the app and its tests share one set of router fallbacks) and all eight new help anchors match headings that exist in the guide repo.

Testing

Built the target commit for production and drove a temporary Playwright journey spec (kept in the evidence directory, removed from the worktree) plus the existing onboarding spec against the real app on the local stack with per-test users, in mobile and desktop Chromium: 18 of 18 passed, then the newcomer Home journey repeated 8 times per viewport (16 of 16 passed, no Groups section flash recorded), then a final 16 of 16 rerun that retook all 38 screenshots after animations settled. Covered first steps card lifecycle, the no-flash hold, muted zero amounts, header Settle up rules, no-group create prompts, empty Plans and Friends, the not-found page at root and under a group, help topic links and the tomato and olive colour rules. No lint or full suite was run. Worktree is clean and no server is left running.

  • Live validation: ✅ go - 11 of 12 scenarios driven live against the product
Scenario Result Live Evidence
Newcomer with no groups opens Home (local stack, throwaway user): Set the table card shows 0 of 3 done with a solid tomato Create a group button, step 3 has no button, Groups and Coming up sections ar… ✅ pass live playwright-run-round3.log, test 'newcomer Home: first steps card leads...' on both projects; desktop-chromium-01-home-newcomer.png, mobile-chromium-01-home-newcomer.png
Adversarial: newcomer Home never shows the Groups section before the first steps card, on desktop and mobile widths ✅ pass live playwright-run-round3-newcomer.log: 8 desktop and 8 mobile loads all report {"seen":null,"gone":null}; same in the two full runs
Hiding the first steps card persists across reload in the same browser, and a clean browser for the same user shows it again ✅ pass live playwright-run-round3.log newcomer test; *-02-home-newcomer-hidden-after-reload.png
First steps follow the group: a solo group moves the card to step 2, a second member removes the card; a user whose only group is archived is not treated as a newcomer ✅ pass live playwright-run-round3.log tests 'first steps follow the group' and 'archived only user is not treated as a newcomer'; *-03-home-solo-group-step-2.png, *-04-home-established-no-card.png
Zero You owe and Owed to you figures on the Home balance card are muted grey while All square stays olive; a real $20.00 debt shows in tomato ✅ pass live Computed colours asserted in the newcomer and colour tests (playwright-run-round3.log); desktop-chromium-01-home-newcomer.png, *-18-home-owing.png
Group header shows a primary Settle up when you owe; it is hidden on the Balances tab, when you are owed, and when the group is archived ✅ pass live playwright-run-round3.log test 'group header Settle up...'; *-05-group-header-owing.png, *-06-group-balances-tab.png, *-07-group-header-owed.png, *-08-group-header-archived-owing.png
With no groups, New expense, Settle up and New plan each offer Create a group and open the create sheet ✅ pass live playwright-run-round3.log test 'no groups: ...'; *-09 to *-12 screenshots
Empty Plans and empty Friends show their add button exactly once ✅ pass live playwright-run-round3.log test 'empty Plans and Friends show their add button once'; *-13-plans-empty.png, *-14-friends-empty.png
Unknown URL shows the real not-found page signed out, and an unknown path under a member's group renders it standalone (no nested app frame or second main) ✅ pass live playwright-run-round3.log test 'not found: a real page at the root, and standalone under a group'; *-15-not-found-signed-out.png, *-16-not-found-under-group.png
New help tips open and link to the guide; primary actions are solid tomato, owed amounts olive, you owe tomato text ✅ pass live playwright-run-round3.log test 'help: new topics link to the guide, and colours follow the tomato and olive rules'; *-17-colour-owed-olive.png, *-19-balances-owing.png
Sign up through onboarding still lands on Home (existing onboarding journey) ✅ pass live e2e/onboarding.spec.ts passed on both projects in the first run of this round
Each new help topic anchor resolves to an existing heading in the published potluck-docs guide ⏸️ untested no The guide lives in the separate Fermulate/potluck-docs repo, which is outside this worktree; the app side (links render and point at the guide) was driven live, but heading existence in the guide was…

Newcomer Home, desktop: Set the table card, muted zero amounts, no Groups section

Newcomer Home, mobile

Established Home, desktop: no card, Coming up and Your groups shown

Solo group: first steps at step 2, mobile

Group header Settle up while owing, mobile

Archived group while owing: no header Settle up

Balances tab while owing, desktop: hero settled at $20.00, olive owed, tomato owe

New expense with no groups offers Create a group

Not-found page under a group, standalone

Not-found page signed out, mobile

Evidence: Playwright run, this round (16 journeys, both viewports)
[WebServer] [PLUGIN_TIMINGS] JavaScript callbacks ran for 9.4s. The build took 6.0s. Callbacks such as `closeBundle` run after the build ends, so callback time can be more than build time.
[WebServer] The slowest callbacks, timed inside each callback (the wait before a callback starts is excluded, the time it awaits is included):
[WebServer]   - plugin vite:build-html generateBundle (78%, 4.6s, 1 call)
[WebServer]   - plugin vite-plugin-pwa:build closeBundle (64%, 3.8s, 1 call)
[WebServer] Additional callback time came from the callbacks below and from callbacks under 1s.
[WebServer] 2 callbacks are listed without a time. Their calls overlapped, so the time inside one call includes work from other calls. To find their cost, profile the build with `node --cpu-prof`:
[WebServer]   - plugin vite:css transform (5 calls)
[WebServer]   - plugin @tailwindcss/vite:generate:build transform (5 calls)
[WebServer] See https://rolldown.rs/reference/InputOptions.checks#bundlertimings for more details.
[WebServer] 

Running 16 tests using 4 workers

EVIDENCE groups section before card mobile-chromium {"seen":null,"gone":null}
EVIDENCE newcomer hero mobile-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
  ok  4 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:125:1 › archived only user is not treated as a newcomer (1.8s)
  ok  1 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:100:1 › first steps follow the group: solo group moves to step 2, a second member ends it (5.4s)
  ok  3 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:41:1 › newcomer Home: first steps card leads, hide persists per browser and per user (5.4s)
  ok  5 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:184:1 › no groups: New expense, Settle up and New plan offer Create a group and open the sheet (6.2s)
  ok  6 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:205:1 › empty Plans and Friends show their add button once (3.6s)
  ok  7 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:220:1 › not found: a real page at the root, and standalone under a group (4.2s)
  ok  2 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:135:1 › group header Settle up: shown when you owe, not on Balances, not when owed or archived (9.7s)
EVIDENCE owing hero mobile-chromium {"realOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(255, 122, 92)","text":"$20.00$20.00"},"noneOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"}}
EVIDENCE groups section before card desktop-chromium {"seen":null,"gone":null}
EVIDENCE newcomer hero desktop-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
  ok 11 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:125:1 › archived only user is not treated as a newcomer (1.3s)
  ok  9 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:41:1 › newcomer Home: first steps card leads, hide persists per browser and per user (3.9s)
  ok 10 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:100:1 › first steps follow the group: solo group moves to step 2, a second member ends it (3.7s)
  ok 14 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:205:1 › empty Plans and Friends show their add button once (1.9s)
  ok  8 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:244:1 › help: new topics link to the guide, and colours follow the tomato and olive rules (10.3s)
  ok 13 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:184:1 › no groups: New expense, Settle up and New plan offer Create a group and open the sheet (4.3s)
  ok 15 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:220:1 › not found: a real page at the root, and standalone under a group (2.0s)
  ok 12 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:135:1 › group header Settle up: shown when you owe, not on Balances, not when owed or archived (6.4s)
EVIDENCE owing hero desktop-chromium {"realOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(255, 122, 92)","text":"$20.00$20.00"},"noneOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"}}
  ok 16 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:244:1 › help: new topics link to the guide, and colours follow the tomato and olive rules (6.4s)

  16 passed (49.3s)
Evidence: Newcomer flash check, 8 repeats per viewport

desktop-chromium x8 and mobile-chromium x8: EVIDENCE groups section before card {"seen":null,"gone":null}; 16 passed

[WebServer] [PLUGIN_TIMINGS] JavaScript callbacks ran for 7.9s. The build took 4.8s. Callbacks such as `closeBundle` run after the build ends, so callback time can be more than build time.
[WebServer] The slowest callbacks, timed inside each callback (the wait before a callback starts is excluded, the time it awaits is included):
[WebServer]   - plugin vite:build-html generateBundle (74%, 3.6s, 1 call)
[WebServer]   - plugin vite-plugin-pwa:build closeBundle (68%, 3.3s, 1 call)
[WebServer] Additional callback time came from the callbacks below and from callbacks under 1s.
[WebServer] 2 callbacks are listed without a time. Their calls overlapped, so the time inside one call includes work from other calls. To find their cost, profile the build with `node --cpu-prof`:
[WebServer]   - plugin vite:css transform (5 calls)
[WebServer]   - plugin @tailwindcss/vite:generate:build transform (5 calls)
[WebServer] See https://rolldown.rs/reference/InputOptions.checks#bundlertimings for more details.
[WebServer] 

Running 16 tests using 2 workers

EVIDENCE groups section before card mobile-chromium {"seen":null,"gone":null}
EVIDENCE groups section before card mobile-chromium {"seen":null,"gone":null}
EVIDENCE newcomer hero mobile-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
EVIDENCE newcomer hero mobile-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
  ok  2 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (4.0s)
  ok  1 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (4.2s)
EVIDENCE groups section before card mobile-chromium {"seen":null,"gone":null}
EVIDENCE newcomer hero mobile-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
EVIDENCE groups section before card mobile-chromium {"seen":null,"gone":null}
EVIDENCE newcomer hero mobile-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
  ok  3 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (3.5s)
  ok  4 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (3.5s)
EVIDENCE groups section before card mobile-chromium {"seen":null,"gone":null}
EVIDENCE newcomer hero mobile-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
EVIDENCE groups section before card mobile-chromium {"seen":null,"gone":null}
EVIDENCE newcomer hero mobile-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
  ok  5 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (3.5s)
  ok  6 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (3.4s)
EVIDENCE groups section before card mobile-chromium {"seen":null,"gone":null}
EVIDENCE groups section before card mobile-chromium {"seen":null,"gone":null}
EVIDENCE newcomer hero mobile-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
EVIDENCE newcomer hero mobile-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
  ok  7 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (3.9s)
  ok  8 [mobile-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (3.9s)
EVIDENCE groups section before card desktop-chromium {"seen":null,"gone":null}
EVIDENCE groups section before card desktop-chromium {"seen":null,"gone":null}
EVIDENCE newcomer hero desktop-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
EVIDENCE newcomer hero desktop-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
  ok 10 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (2.4s)
  ok  9 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (2.5s)
EVIDENCE groups section before card desktop-chromium {"seen":null,"gone":null}
EVIDENCE groups section before card desktop-chromium {"seen":null,"gone":null}
EVIDENCE newcomer hero desktop-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
EVIDENCE newcomer hero desktop-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
  ok 12 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (2.5s)
  ok 11 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (2.6s)
EVIDENCE groups section before card desktop-chromium {"seen":null,"gone":null}
EVIDENCE newcomer hero desktop-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
EVIDENCE groups section before card desktop-chromium {"seen":null,"gone":null}
EVIDENCE newcomer hero desktop-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
  ok 13 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (2.3s)
  ok 14 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (2.4s)
EVIDENCE groups section before card desktop-chromium {"seen":null,"gone":null}
EVIDENCE newcomer hero desktop-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
EVIDENCE groups section before card desktop-chromium {"seen":null,"gone":null}
EVIDENCE newcomer hero desktop-chromium {"zeroOwe":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"zeroOwed":{"label":"rgb(185, 173, 156)","amount":"rgb(185, 173, 156)","text":"$0.00$0.00"},"square":"rgb(168, 213, 135)"}
  ok 15 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (2.4s)
  ok 16 [desktop-chromium] › e2e\zz-ui-pass-evidence.spec.ts:36:1 › newcomer Home: first steps card leads, hide persists per browser and per user (2.4s)

  16 passed (59.6s)
Evidence: Journey spec used to drive the scenarios (not committed)
import { updateGroup } from '@potluck/api'
import { t } from '@potluck/i18n'
import type { Page, TestInfo } from '@playwright/test'
import { addEqualExpense, groupWith } from './support/api'
import { expect, test } from './support/fixtures'

const OUT = process.env.EVIDENCE_DIR!
const shot = async (page: Page, info: TestInfo, name: string) => {
  // Entrance fades and count ups finish first, so the shot shows the settled screen.
  await page.evaluate(() =>
    Promise.all(document.getAnimations().filter((a) => a.effect?.getComputedTiming().endTime !== Infinity).map((a) => a.finished.catch(() => undefined))),
  )
  await page.screenshot({ path: `${OUT}/${info.project.name}-${name}.png`, fullPage: true })
}

const rgb = (hex: string) => {
  const n = parseInt(hex.slice(1), 16)
  return `rgb(${n >> 16}, ${(n >> 8) & 255}, ${n & 255})`
}
const TOMATO = rgb('#d63f25')
const OLIVE_INK = rgb('#3a6f24')
const TOMATO_INK = rgb('#bc3720')
const bg = (page: Page, loc: ReturnType<Page['locator']>) =>
  loc.evaluate((el) => getComputedStyle(el).backgroundColor)
const fg = (loc: ReturnType<Page['locator']>) => loc.evaluate((el) => getComputedStyle(el).color)

/** Colour of the figure under a balance card label, and of the label itself (hero mute). */
const figure = (page: Page, label: string) =>
  page
    .getByRole("region", { name: t("home.balance.title") })
    .getByText(label, { exact: true })
    .evaluate((el) => {
      let node = el.nextElementSibling as Element
      while (node.firstElementChild) node = node.firstElementChild
      return { label: getComputedStyle(el).color, amount: getComputedStyle(node).color, text: el.nextElementSibling!.textContent }
    })

const steps = (page: Page) => page.getByRole('region', { name: t('home.firstSteps.title') })
const createDialog = (page: Page) => page.getByRole('dialog', { name: t('groups.create.title') })

test('newcomer Home: first steps card leads, hide persists per browser and per user', async ({
  newUser,
  openAs,
}, info) => {
  const user = await newUser()
  const page = await openAs(user)
  // Adversarial: record whether the Groups section ever showed before the card took over.
  await page.addInitScript((heading) => {
    const w = window as unknown as { groupsSeen?: number; groupsGone?: number }
    new MutationObserver(() => {
      const there = [...document.querySelectorAll("h2")].some((h) => h.textContent?.trim() === heading)
      if (there && w.groupsSeen === undefined) w.groupsSeen = performance.now()
      if (!there && w.groupsSeen !== undefined && w.groupsGone === undefined) w.groupsGone = performance.now()
    }).observe(document, { childList: true, subtree: true })
  }, t("home.groups"))
  await page.goto("/home")
  await expect(steps(page)).toBeVisible()
  const flash = await page.evaluate(() => {
    const w = window as unknown as { groupsSeen?: number; groupsGone?: number }
    return { seen: w.groupsSeen ?? null, gone: w.groupsGone ?? null }
  })
  console.log("EVIDENCE groups section before card", info.project.name, JSON.stringify(flash))
  // Zero figures on the balance card are muted; the All square headline stays olive.
  const zeroOwe = await figure(page, t("home.balance.youOwe"))
  const zeroOwed = await figure(page, t("home.balance.owedToYou"))
  expect(zeroOwe.text).toContain("0.00")
  expect(zeroOwe.amount).toBe(zeroOwe.label)
  expect(zeroOwed.amount).toBe(zeroOwed.label)
  const square = await fg(page.getByRole("region", { name: t("home.balance.title") }).getByText(t("home.balance.settled"), { exact: true }))
  expect(square).not.toBe(zeroOwe.label)
  console.log("EVIDENCE newcomer hero", info.project.name, JSON.stringify({ zeroOwe, zeroOwed, square }))
  await expect(steps(page)).toContainText(t('home.firstSteps.progress', { done: 0, total: 3 }))
  // Sections that need a group are not there.
  await expect(page.getByRole('heading', { name: t('home.groups'), exact: true })).toHaveCount(0)
  await expect(page.getByRole('heading', { name: t('timeline.title'), exact: true })).toHaveCount(0)
  // Step 3 has no button; step 1 is the only action.
  await expect(
    steps(page).getByRole('link', { name: t('home.firstSteps.peopleAction') }),
  ).toHaveCount(0)
  const action = steps(page).getByRole('link', { name: t('home.firstSteps.groupAction') })
  expect(await bg(page, action)).toBe(TOMATO)
  await shot(page, info, '01-home-newcomer')

  await steps(page)
    .getByRole('button', { name: t('home.firstSteps.hide') })
    .click()
  await expect(steps(page)).toHaveCount(0)
  await page.reload()
  await expect(page.getByRole('heading', { level: 1 })).toBeVisible()
  await expect(page.getByRole('heading', { name: t('timeline.title'), exact: true })).toBeVisible()
  await expect(steps(page)).toHaveCount(0)
  await shot(page, info, '02-home-newcomer-hidden-after-reload')

  // Adversarial: the hide is per browser, so a clean browser shows the card again.
  const fresh = await openAs(user)
  await fresh.goto('/home')
  await expect(steps(fresh)).toBeVisible()
})

test('first steps follow the group: solo group moves to step 2, a second member ends it', async ({
  newUser,
  openAs,
}, info) => {
  const owner = await newUser()
  const friend = await newUser()
  const group = await groupWith(owner)
  const page = await openAs(owner)
  await page.goto('/home')
  await expect(steps(page)).toContainText(t('home.firstSteps.progress', { done: 1, total: 3 }))
  await expect(page.getByRole('heading', { name: t('home.groups'), exact: true })).toBeVisible()
  await shot(page, info, '03-home-solo-group-step-2')
  await steps(page)
    .getByRole('link', { name: t('home.firstSteps.peopleAction') })
    .click()
  await expect(page).toHaveURL(new RegExp(`/groups/${group.id}/members`))

  const other = await groupWith(owner, [friend])
  expect(other.id).toBeTruthy()
  await page.goto('/home')
  await expect(page.getByRole('heading', { name: t('home.groups'), exact: true })).toBeVisible()
  await expect(steps(page)).toHaveCount(0)
  await shot(page, info, '04-home-established-no-card')
})

test('archived only user is not treated as a newcomer', async ({ newUser, openAs }) => {
  const owner = await newUser()
  const group = await groupWith(owner)
  await updateGroup(owner.client, group.id, { archived_at: new Date().toISOString() })
  const page = await openAs(owner)
  await page.goto('/home')
  await expect(page.getByRole('heading', { name: t('home.groups'), exact: true })).toBeVisible()
  await expect(steps(page)).toHaveCount(0)
})

test('group header Settle up: shown when you owe, not on Balances, not when owed or archived', async ({
  newUser,
  openAs,
}, info) => {
  const payer = await newUser()
  const debtor = await newUser()
  const group = await groupWith(payer, [debtor])
  await addEqualExpense(payer, group, [payer, debtor], 4000)

  const page = await openAs(debtor)
  await page.goto(`/groups/${group.id}`)
  const header = page.getByRole('main')
  const settle = header.getByRole('link', { name: t('balances.settleUp'), exact: true })
  await expect(settle).toHaveCount(1)
  await expect(settle).toBeVisible()
  expect(await bg(page, settle)).toBe(TOMATO)
  await shot(page, info, '05-group-header-owing')

  await page.goto(`/groups/${group.id}/balances`)
  await expect(page.getByRole('heading', { level: 1 })).toContainText(group.name)
  await expect(page).toHaveURL(/\/balances$/)
  await page.waitForLoadState('networkidle')
  // The header link goes to /new/settle with this group; on Balances only the tab's own remain.
  await expect(page.locator('header a[href*="/new/settle"]')).toHaveCount(0)
  await shot(page, info, '06-group-balances-tab')

  await page.goto(`/groups/${group.id}`)
  await settle.click()
  await expect(page).toHaveURL(new RegExp(`/new/settle.*${group.id}`))

  // The one who is owed gets no Settle up in the header.
  const owed = await openAs(payer)
  await owed.goto(`/groups/${group.id}`)
  await expect(owed.getByRole('heading', { level: 1 })).toContainText(group.name)
  await owed.waitForLoadState('networkidle')
  await expect(
    owed.getByRole('main').getByRole('link', { name: t('balances.settleUp'), exact: true }),
  ).toHaveCount(0)
  await shot(owed, info, '07-group-header-owed')

  // Adversarial: archive the group, the debtor still owes but the header must not offer it.
  await updateGroup(payer.client, group.id, { archived_at: new Date().toISOString() })
  await page.goto(`/groups/${group.id}`)
  await expect(page.getByRole('heading', { level: 1 })).toContainText(group.name)
  await page.waitForLoadState('networkidle')
  await expect(settle).toHaveCount(0)
  await shot(page, info, '08-group-header-archived-owing')
})

test('no groups: New expense, Settle up and New plan offer Create a group and open the sheet', async ({
  newUser,
  openAs,
}, info) => {
  const page = await openAs(await newUser())
  for (const [path, name] of [
    ['/new/expense', '09-new-expense-no-groups'],
    ['/new/settle', '10-settle-no-groups'],
    ['/new/plan', '11-new-plan-no-groups'],
  ] as const) {
    await page.goto(path)
    const create = page.getByRole('link', { name: t('empty.groups.action') })
    await expect(create).toBeVisible()
    await shot(page, info, name)
    await create.click()
    await expect(page).toHaveURL(/\/groups/)
    await expect(createDialog(page)).toBeVisible()
  }
  await shot(page, info, '12-create-sheet-opened')
})

test('empty Plans and Friends show their add button once', async ({ newUser, openAs }, info) => {
  const page = await openAs(await newUser())
  await page.goto('/plans')
  await expect(page.getByText(t('empty.plans.title'))).toBeVisible()
  await expect(page.getByRole('main').getByRole('link', { name: t('events.new') })).toHaveCount(1)
  await shot(page, info, '13-plans-empty')

  await page.goto('/friends')
  await expect(page.getByText(t('friends.empty.title'))).toBeVisible()
  await expect(
    page.getByRole('main').getByRole('button', { name: t('friends.empty.action') }),
  ).toHaveCount(1)
  await shot(page, info, '14-friends-empty')
})

test('not found: a real page at the root, and standalone under a group', async ({
  newUser,
  openAs,
}, info) => {
  const anon = await openAs(null)
  await anon.goto('/no-such-screen')
  await expect(anon.getByRole('heading', { level: 1, name: t('errors.notFound') })).toBeVisible()
  await expect(anon.getByText(t('errors.notFoundBody'))).toBeVisible()
  await expect(anon.getByText('Not Found', { exact: true })).toHaveCount(0)
  await shot(anon, info, '15-not-found-signed-out')

  const user = await newUser()
  const group = await groupWith(user)
  const page = await openAs(user)
  await page.goto(`/groups/${group.id}/bogus`)
  await expect(page.getByRole('heading', { level: 1, name: t('errors.notFound') })).toBeVisible()
  await expect(page.locator('main')).toHaveCount(1)
  await expect(page.locator('#main')).toHaveCount(1)
  await expect(page.getByText(group.name)).toHaveCount(0)
  await shot(page, info, '16-not-found-under-group')
  await page.getByRole('link', { name: t('errors.screen.home') }).click()
  await expect(page).toHaveURL(/\/home$/)
})

test('help: new topics link to the guide, and colours follow the tomato and olive rules', async ({
  newUser,
  openAs,
}, info) => {
  const payer = await newUser()
  const debtor = await newUser()
  const group = await groupWith(payer, [debtor])
  await addEqualExpense(payer, group, [payer, debtor], 4000)

  const page = await openAs(payer)
  await page.goto('/plans')
  const plansHelp = page.getByRole('link', { name: new RegExp(t('help.topics.plansPage')) })
  await expect(plansHelp).toHaveAttribute('href', /\/plans\/#the-plans-page$/)
  await expect(plansHelp).toHaveAttribute('target', '_blank')
  await page.goto('/friends')
  await expect(
    page.getByRole('link', { name: new RegExp(t('help.topics.friendTotals')) }),
  ).toHaveAttribute('href', /\/friends\/#what-the-totals-mean$/)
  await page.goto('/new/plan')
  await expect(
    page.getByRole('link', { name: new RegExp(t('help.topics.startPoll')) }),
  ).toHaveAttribute('href', /\/plans\/#start-a-poll$/)

  // Owed to you reads olive in the group header; you owe reads tomato text.
  await page.goto(`/groups/${group.id}`)
  const owedAmount = page.locator('header .text-olive-ink').first()
  await expect(owedAmount).toBeVisible()
  expect(await fg(owedAmount)).toBe(OLIVE_INK)
  await shot(page, info, '17-colour-owed-olive')

  const owing = await openAs(debtor)
  await owing.goto(`/groups/${group.id}`)
  const oweAmount = owing.locator('header .text-tomato-ink').first()
  await expect(oweAmount).toBeVisible()
  expect(await fg(oweAmount)).toBe(TOMATO_INK)
  expect(await bg(owing, oweAmount)).toBe('rgba(0, 0, 0, 0)')

  await owing.goto('/home')
  await expect(owing.getByRole('heading', { level: 1 })).toBeVisible()
  await owing.waitForLoadState('networkidle')
  // A real debt keeps its colour; the zero column beside it is muted.
  const realOwe = await figure(owing, t("home.balance.youOwe"))
  const noneOwed = await figure(owing, t("home.balance.owedToYou"))
  expect(realOwe.text).toContain("20.00")
  expect(realOwe.amount).not.toBe(realOwe.label)
  expect(noneOwed.amount).toBe(noneOwed.label)
  console.log("EVIDENCE owing hero", info.project.name, JSON.stringify({ realOwe, noneOwed }))
  await shot(owing, info, "18-home-owing")
  await owing.goto(`/groups/${group.id}/balances`)
  await owing.waitForLoadState("networkidle")
  await owing.waitForTimeout(2000)
  await expect(owing.getByText("$19.79")).toHaveCount(0)
  await shot(owing, info, "19-balances-owing")

  // No blue primary anywhere on these screens: every solid button fill is warm (red >= blue).
  const fills = await owing
    .locator('button, a')
    .evaluateAll((els) => els.map((el) => getComputedStyle(el).backgroundColor))
  for (const fill of fills) {
    const m = /rgba?\((\d+), (\d+), (\d+)(?:, ([\d.]+))?\)/.exec(fill)
    if (!m || Number(m[4] ?? 1) < 0.5) continue
    expect(Number(m[1]), `fill ${fill}`).toBeGreaterThanOrEqual(Number(m[3]))
  }
})
  • Outcome: 🔧 2 issues found → auto-fixed (2) ✅ across 3 runs (17m28s)

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 5 issues found → auto-fixed (2) ✅
  • ⚠️ apps/web/src/main.tsx:25 - RouteNotFound is written as a standalone page (own <main id="main">, min-h-dvh, Wordmark; its comment says "no app frame around it, the miss happens at the root"), but the router is left on TanStack's default notFoundMode 'fuzzy', which renders defaultNotFoundComponent in the Outlet of the nearest matched parent that has children. Concrete path: a signed-in user opens /groups/<their group>/bogus (stale or mistyped link). Matches are root -> _app -> /groups/$groupId, so the page renders inside GroupLayout inside AppLayout: a second <main id="main"> nested in app-layout.tsx:150's main (duplicate id, nested main landmark), a second wordmark, and a full-viewport-height block under the group header and tabs. Same for any unknown path that resolves under _app. The new test only covers a root-level miss with a flat route tree. Smallest fix matching the author's stated design: set notFoundMode: 'root' beside defaultNotFoundComponent (apps/web/src/features/shell/route-error.tsx:52 is the component). Not verified against the installed router (node_modules is absent in this worktree); based on the documented default.
  • ⚠️ apps/web/src/features/dashboard/home-dashboard.tsx:37 - noGroups and FirstSteps both read planQueries.groups, which excludes friend tabs (is_direct) and archived groups (packages/api/src/plans.ts:169-170). So an established user whose groups are all archived, or who only uses friend tabs, is treated as a newcomer: Home shows "Set the table" with step 1 "Start a group" (first-steps.tsx:69, hasCompany never sees archived groups with members) and hides the Groups section (line 201) and the empty Coming up prompt (line 152). Second sequence: a user with zero groups dismisses the card; the Groups section, which carried the only "New group" tile on Home, stays hidden, so Home has no create-group affordance left (Groups tab and + still work). The intent says the card shows "until some group has more than one member" and that Home hides sections "impossible without a group"; whether archived or direct groups count, and whether the New group tile should survive dismissal, is a product decision.
  • ⚠️ packages/i18n/src/en/plans.ts:407 - home.firstSteps.expenseAction is added in en and translated in de, es, fr and pt (packages/i18n/src/{de,es,fr,pt}/plans.ts) but nothing renders it: the intent states step 3 has no button on purpose in this pass. No intent requirement needs the string; recommend removing it from all five locales until the button exists.
  • ℹ️ apps/web/src/features/groups/group-layout.test.tsx:93 - The test is titled "...and not once you are square or the group is archived" but only renders owing, the Balances tab, and a square group; no case sets archived_at. The archived half of the header rule (group-layout.tsx: !group.archived_at &amp;&amp; group.my_net_cents &lt; 0 &amp;&amp; !onBalances) is unasserted, so dropping the archived check would pass. Add a render of an owing group with archived_at set and assert the Settle up link is absent.
  • ℹ️ apps/web/src/features/expenses/form/split-editor.tsx:325 - The merged ref is an inline arrow, so its identity changes on every SplitEditor render. React then calls the old callback with null and the new one with the node, which runs setNode(null) then setNode(node) in useMoreToTheRight (apps/web/src/lib/overflow.ts:10) on every render and schedules an extra render pass each time (it bails out, so no loop and no visible effect). Wrap the merged ref in useCallback with [modesFadeRef]; setNode is stable.

🔧 Fix applied.
3 issues (2 warnings, 1 info) still open:

  • ⚠️ apps/web/src/features/dashboard/home-dashboard.tsx:37 - noGroups and FirstSteps both read planQueries.groups, which excludes friend tabs (is_direct) and archived groups (packages/api/src/plans.ts:169-170). So an established user whose groups are all archived, or who only uses friend tabs, is treated as a newcomer: Home shows "Set the table" with step 1 "Start a group" (first-steps.tsx:69, hasCompany never sees archived groups with members) and hides the Groups section (line 201) and the empty Coming up prompt (line 152). Second sequence: a user with zero groups dismisses the card; the Groups section, which carried the only "New group" tile on Home, stays hidden, so Home has no create-group affordance left (Groups tab and + still work). The intent says the card shows "until some group has more than one member" and that Home hides sections "impossible without a group"; whether archived or direct groups count, and whether the New group tile should survive dismissal, is a product decision.
  • ⚠️ apps/web/src/features/dashboard/home-dashboard.tsx:42 - Introduced by the round 1 fix. The newcomer check now reads useMyGroups, which prefetch.home (apps/web/src/lib/prefetch.ts:36) does not start and which the Home hold (settled, home-dashboard.tsx:92) does not wait for. While mine is undefined, firstSteps and stepsLead are false. Concrete sequence: a new user lands on /home after onboarding with no groups; the prefetched timeline and balances answer first, so Home reveals the empty Coming up prompt (New plan button) and the Groups section with the New group tile; then the my groups request (groups with members plus all balances) answers with [], and both sections disappear and the Set the table card takes their place (lines 160, 162, 210). This is the layout shift the holdBelow logic exists to prevent, on the first screen a newcomer sees. A newcomer with one solo group gets the card popping in above Coming up the same way. Fix: start myGroupsQueryOptions in prefetch.home and include the my groups query in settled (answered with data or an error, or HOLD_MS passed), so what sits below waits for it like it waits for the timeline and balances.
  • ℹ️ apps/web/src/features/shell/route-error.test.tsx:103 - Added in round 1. The test titled "...as the app sets the router up" builds its own router and passes notFoundMode: 'root' itself, so it shows what the router library does with that option, not that the app sets it: deleting notFoundMode from apps/web/src/main.tsx:27 (the regression round 1 fixed) leaves the test green. I confirmed against the installed router (router-core 1.171.39, findGlobalNotFoundRouteId and executeClientLane) that 'root' does render the page in the root Outlet and skips child guards, so the app behavior is correct today; only the guard is missing. To make it reject that regression, move the shared router options (defaultErrorComponent, defaultNotFoundComponent, notFoundMode) into an exported constant that main.tsx and this test both spread into createRouter.

🔧 Fix applied.
✅ Re-checked - no issues remain.

🔧 **Test** - 2 issues found → auto-fixed (2) ✅
  • ⚠️ apps/web/src/features/dashboard/balance-hero.tsx - On a newcomer's Home the balance card shows 'All square' in green, 'You owe $0.00' in tomato and 'Owed to you $0.00' in green (screenshot mobile-chromium-01-home-newcomer.png). The intent says settled or zero amounts are muted grey (previously green). The headline may count as 'success' (olive), but the two $0.00 figures are zero amounts in owe and owed colours. Not changed here: whether the hero columns are exempt from the muted rule is a design decision.
  • ℹ️ apps/web/src/features/balances/balances-tab.tsx - On the group Balances tab the hero read 'You owe $19.79' while the header, the who pays whom row and the member rows read $20.00, in two separate runs after network idle (desktop-chromium-06 and -19 screenshots). Most likely a count-up animation caught mid-frame; I did not confirm that it settles at $20.00. This change only touches colours in that file and in the Amount component, so it is not introduced by this diff, but worth a glance.
  • Live validation: ✅ go - 9 of 9 scenarios driven live against the product
Scenario Result Live Evidence
New user signs up, finishes onboarding, lands on Home and the Set the table card's Create a group opens the create group sheet (local preview, synthetic user) ✅ pass live e2e/onboarding.spec.ts on desktop-chromium and mobile-chromium, playwright-run.log
Newcomer with no groups sees Set the table at 0 of 3 with only step 1 actionable, Your groups and Coming up hidden; Hide persists across reload; a clean browser for the same user shows the card again… ✅ pass live playwright-run.log; screenshots 01-home-newcomer, 02-home-newcomer-hidden-after-reload
User with a solo group sees 1 of 3 done and Add people leading to the group's Members; once a group has a second member the card is gone ✅ pass live playwright-run.log; screenshots 03-home-solo-group-step-2, 04-home-established-no-card
Adversarial: user whose only group is archived is not treated as a newcomer (no card, Your groups shown) ✅ pass live playwright-run.log, test 'archived only user is not treated as a newcomer'
Group header shows a solid tomato Settle up when you owe and it opens settle for that group; absent in the header on the Balances tab, absent for the member who is owed, absent once the group is archi… ✅ pass live playwright-run-settle-header.log; screenshots 05 to 08
With no groups, New expense, Settle up and New plan each offer Create a group, which opens the New group sheet ✅ pass live playwright-run.log; screenshots 09 to 12
Empty Plans and empty Friends show their add button exactly once ✅ pass live playwright-run.log; screenshots 13-plans-empty, 14-friends-empty
Unknown address shows the real not-found page signed out; a bogus path under a signed-in user's group renders it standalone (one main landmark, no group frame) and Go home returns to Home ✅ pass live playwright-run.log; screenshots 15-not-found-signed-out, 16-not-found-under-group
New help topics on Plans, Friends and New plan link to the guide in a new tab, and all 8 new anchors exist on the public guide; owed-to-you reads olive, you-owe is tomato text with no fill, and no sol… ✅ pass live playwright-run.log (help and colours test); curl anchor check output; screenshots 17 to 19
  • pnpm build in apps/web with VITE_SUPABASE_URL, VITE_SUPABASE_PUBLISHABLE_KEY, VITE_APP_URL=http://localhost:4319 (exit 0), then pnpm preview --port 4319 --strictPort
  • E2E_PORT=4319 pnpm exec playwright test e2e/zz-ui-pass-evidence.spec.ts e2e/onboarding.spec.ts --project=desktop-chromium --project=mobile-chromium (16 passed, group header test timed out on a stray wait in the temp spec)
  • E2E_PORT=4319 pnpm exec playwright test e2e/zz-ui-pass-evidence.spec.ts -g &#34;group header&#34; --project=desktop-chromium --project=mobile-chromium (2 passed)
  • curl of the 8 new help topic pages on docs.potluck.fermulate.com, checking each heading id exists (8 of 8)
  • Manual review of screenshots: newcomer Home (mobile), group header owing, Balances tab, not-found under a group

🔧 Fix applied.
1 warning still open:

  • ⚠️ apps/web/src/features/dashboard/home-dashboard.tsx:102 - On desktop widths a newcomer with no groups can still see the Coming up and Groups sections before the Set the table card replaces them. The hold added in review round 2 is max-lg:invisible, so it only hides the column on phones. In 3 of 4 desktop runs (1440 wide) the Groups heading was in the DOM and visible for about 65 to 75 ms on the local stack before the my groups answer removed it; with real network latency the window is as long as that request. On mobile the same race is hidden by the hold. Proposed repair: apply the hold to the right column on desktop too for the my groups query, or render that column's group-dependent sections only once my groups has answered. Not applied: the hold is mobile-only by existing design, so extending it is a product decision.
  • Live validation: ✅ go - 11 of 11 scenarios driven live against the product
Scenario Result Live Evidence
New user with no groups opens Home (local build, synthetic user): Set the table card shows 0 of 3 done with a tomato Create a group button, no step 3 button, Groups and Coming up sections absent; Hide… ✅ pass live playwright-run-round2.log and playwright-run-round2-newcomer.log, test 'newcomer Home' on both projects; screenshots 01 and 02
Newcomer Home balance card: You owe $0.00 and Owed to you $0.00 are muted grey while All square stays olive; with a real $20.00 debt the owe figure is tomato and the zero owed column stays muted ✅ pass live EVIDENCE lines in playwright-run-round2.log (computed colours); mobile-chromium-01-home-newcomer.png, mobile-chromium-18-home-owing.png
Adversarial: newcomer Home never shows the Groups section before the first steps card takes over ✅ pass live playwright-run-round2-newcomer.log: never in DOM on mobile-chromium (3 runs); on desktop-chromium present about 70 ms in 3 of 4 runs, see finding first-steps-desktop-groups-flash
User with one solo group sees step 2 (1 of 3 done) and Add people opens the group's members; once a group has a second member the card is gone ✅ pass live playwright-run-round2.log, test 'first steps follow the group'; screenshots 03 and 04
User whose only group is archived is not treated as a newcomer: Groups section shows, no first steps card ✅ pass live playwright-run-round2.log, test 'archived only user is not treated as a newcomer'
Group header shows a solid tomato Settle up when you owe and it opens settle for that group; absent on the Balances tab, for the member who is owed, and (adversarial) after the group is archived while… ✅ pass live playwright-run-round2.log, test 'group header Settle up'; screenshots 05 to 08
With no groups, New expense, Settle up and New plan each offer Create a group, which opens the create group sheet ✅ pass live playwright-run-round2.log, test 'no groups'; screenshots 09 to 12
Empty Plans and Friends each show their add button exactly once ✅ pass live playwright-run-round2.log, test 'empty Plans and Friends'; screenshots 13 and 14
Unknown URL shows the real not-found page signed out, and under a signed-in group URL it renders standalone (one main landmark, no group header) with a working link back to Home ✅ pass live playwright-run-round2.log, test 'not found'; screenshots 15 and 16
New help topics on Plans, Friends and New plan link to existing guide anchors in a new tab; owed reads olive, you owe is tomato text with no fill, no cool blue button fills; Balances hero settles at $… ✅ pass live playwright-run-round2.log, test 'help: new topics link to the guide, and colours'; screenshots 17 to 19
Existing onboarding journey: landing page leads to sign up, onboarding and Home ✅ pass live playwright-run-round2.log, e2e/onboarding.spec.ts on both projects
  • E2E_PORT=4199 pnpm exec playwright test e2e/zz-ui-pass-evidence.spec.ts e2e/onboarding.spec.ts --project=desktop-chromium --project=mobile-chromium (temporary evidence spec, copy kept as ui-pass-evidence.spec.ts.txt in the evidence directory): 17 of 18 passed; the one failure was my own added probe asserting the Groups heading never appears before the card on desktop
  • pnpm exec playwright test e2e/zz-ui-pass-evidence.spec.ts -g &#34;newcomer Home&#34; --repeat-each=3 --project=desktop-chromium --project=mobile-chromium: 6 of 6 passed with the probe changed to a measurement
  • Computed colour checks on the Home balance card: zero You owe and Owed to you figures equal the muted label colour, All square headline is olive, a real $20.00 debt is tomato
  • Viewed mobile-chromium-01-home-newcomer.png to confirm the muted zero figures and the Set the table card
  • Removed the temporary spec, dist, playwright-report and test-results; worktree is clean and nothing listens on 4199

🔧 Fix applied.
✅ Re-checked - no issues remain.

  • Live validation: ✅ go - 11 of 12 scenarios driven live against the product
Scenario Result Live Evidence
Newcomer with no groups opens Home (local stack, throwaway user): Set the table card shows 0 of 3 done with a solid tomato Create a group button, step 3 has no button, Groups and Coming up sections ar… ✅ pass live playwright-run-round3.log, test 'newcomer Home: first steps card leads...' on both projects; desktop-chromium-01-home-newcomer.png, mobile-chromium-01-home-newcomer.png
Adversarial: newcomer Home never shows the Groups section before the first steps card, on desktop and mobile widths ✅ pass live playwright-run-round3-newcomer.log: 8 desktop and 8 mobile loads all report {"seen":null,"gone":null}; same in the two full runs
Hiding the first steps card persists across reload in the same browser, and a clean browser for the same user shows it again ✅ pass live playwright-run-round3.log newcomer test; *-02-home-newcomer-hidden-after-reload.png
First steps follow the group: a solo group moves the card to step 2, a second member removes the card; a user whose only group is archived is not treated as a newcomer ✅ pass live playwright-run-round3.log tests 'first steps follow the group' and 'archived only user is not treated as a newcomer'; *-03-home-solo-group-step-2.png, *-04-home-established-no-card.png
Zero You owe and Owed to you figures on the Home balance card are muted grey while All square stays olive; a real $20.00 debt shows in tomato ✅ pass live Computed colours asserted in the newcomer and colour tests (playwright-run-round3.log); desktop-chromium-01-home-newcomer.png, *-18-home-owing.png
Group header shows a primary Settle up when you owe; it is hidden on the Balances tab, when you are owed, and when the group is archived ✅ pass live playwright-run-round3.log test 'group header Settle up...'; *-05-group-header-owing.png, *-06-group-balances-tab.png, *-07-group-header-owed.png, *-08-group-header-archived-owing.png
With no groups, New expense, Settle up and New plan each offer Create a group and open the create sheet ✅ pass live playwright-run-round3.log test 'no groups: ...'; *-09 to *-12 screenshots
Empty Plans and empty Friends show their add button exactly once ✅ pass live playwright-run-round3.log test 'empty Plans and Friends show their add button once'; *-13-plans-empty.png, *-14-friends-empty.png
Unknown URL shows the real not-found page signed out, and an unknown path under a member's group renders it standalone (no nested app frame or second main) ✅ pass live playwright-run-round3.log test 'not found: a real page at the root, and standalone under a group'; *-15-not-found-signed-out.png, *-16-not-found-under-group.png
New help tips open and link to the guide; primary actions are solid tomato, owed amounts olive, you owe tomato text ✅ pass live playwright-run-round3.log test 'help: new topics link to the guide, and colours follow the tomato and olive rules'; *-17-colour-owed-olive.png, *-19-balances-owing.png
Sign up through onboarding still lands on Home (existing onboarding journey) ✅ pass live e2e/onboarding.spec.ts passed on both projects in the first run of this round
Each new help topic anchor resolves to an existing heading in the published potluck-docs guide ⏸️ untested no The guide lives in the separate Fermulate/potluck-docs repo, which is outside this worktree; the app side (links render and point at the guide) was driven live, but heading existence in the guide was…
  • pnpm --filter @potluck/web exec playwright test e2e/zz-ui-pass-evidence.spec.ts e2e/onboarding.spec.ts --project=mobile-chromium --project=desktop-chromium --retries=0 --workers=4 with CI=true, E2E_PORT=4175 (fresh production build + vite preview): 18 passed
  • pnpm --filter @potluck/web exec playwright test e2e/zz-ui-pass-evidence.spec.ts -g &#34;newcomer Home&#34; --project=mobile-chromium --project=desktop-chromium --repeat-each=8 --retries=0 --workers=2: 16 passed, MutationObserver recorded no Groups heading before the first steps card in any run
  • Final rerun of e2e/zz-ui-pass-evidence.spec.ts on both projects with screenshots taken after animations finish: 16 passed, 38 screenshots refreshed
  • Manual review of desktop screenshots 01 (newcomer Home), 04 (established Home) and 19 (Balances tab while owing; hero settles on $20.00)
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

- Home shows a "Set the table" first steps card until a group has more
  than one member.
- Group header leads with Settle up when you owe.
- New expense, Settle up and New plan offer Create a group when you have
  no groups, instead of a dead end.
- A real not-found page.
- Eight new help topics, each linked to an existing guide heading.
- Colour roles: olive for money owed to you and success, muted grey for
  settled amounts, saffron for the selected bottom tab. Tomato stays the
  primary action colour.
- Fixes: duplicate empty state buttons on Plans and Friends, a clipped
  search placeholder on phones, scroll rows with no overflow cue, the
  wrong tab lit on payment and repeating pages.
@musa-kal
musa-kal merged commit 3523c86 into main Nov 21, 2026
7 checks passed
@musa-kal
musa-kal deleted the ui-overhaul-2026-11-21 branch November 21, 2026 17:03

This branch was successfully deployed

1 active deployment
preview — 8bf68958 Deployed Nov 21, 2026 by musa-kal via Deploy web to Cloudflare #131
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant